<?php foreach($pages as $page): ?>

<?php //slot('title', $page->getTitle()); ?>

<h1><?php echo $page->getTitle(); ?></h1>

<?php echo $page->getContent(ESC_RAW); ?>

<?php endforeach; ?>